<template>
  <div>
    <h2>我是孙组件{{ n }}</h2>
    <button @click="$emit('chuan',m)">向上传值</button>
  </div>
</template>

<script>
export default {
  props: ["n"],
  data() {
    return {
      m: "qs",
    };
  },
};
</script>

<style lang="scss" scoped>
</style>